package com.ctshk.rpc.finance.req.bill;

import com.ctshk.rpc.finance.json.ConfirmAmountJson;
import com.ctshk.rpc.finance.json.FileJson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 提交认款审批req
 */
@Data
@ApiModel(value = "BillConfirmAddReq",description = "提交认款审批req")
public class BillConfirmAddReq implements Serializable {

    @NotNull(message = "ID集合不能为空")
    @ApiModelProperty(value = "ID集合",required = true)
    private List<Long> idList;

    @NotNull(message = "认款手续费不能为空")
    @ApiModelProperty(value = "认款手续费",required = true)
    private BigDecimal confirmServiceCharge;

    @NotNull(message = "币种ID不能为空")
    @ApiModelProperty(value = "币种ID",required = true)
    private Long currencyId;

    @NotNull(message = "币种不能为空")
    @ApiModelProperty(value = "币种",required = true)
    private String currency;

    @NotNull(message = "金额币种列表不能为空")
    @ApiModelProperty(value = "金额币种列表",required = true)
    private List<ConfirmAmountJson> amountList;

    @NotNull(message = "汇率不能为空")
    @ApiModelProperty(value = "汇率",required = true)
    private BigDecimal exchangeRate;

    @ApiModelProperty(value = "凭证Json")
    private List<FileJson> voucherJsonList;

    @ApiModelProperty(value = "认款备注")
    private String confirmRemark;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

}
